#! bin\bash



port=3308
echo  'default port:' $port



if  [ -n "$1" ] ;then
   echo '$1' $1 $2
   port=$2
   echo 'port changed to' $2
fi


sudo docker stop  mysql5_6_$port && docker rm mysql5_6_$port

sudo docker run -d -p $port:3306 --name mysql5_6_$port --privileged=true -e MYSQL_ROOT_PASSWORD=a123456 -d mysql:5.6

